import Vue from 'vue'
import VueRouter from 'vue-router'
import BScore from '../views/BScore.vue'
import BSMouseWheel from '../views/BSMouseWheel.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'BScore',
    component: BScore
  },
  {
    path: '/mouse-wheel',
    name: 'mouse-wheel',
    component:BSMouseWheel,
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    // component: () => import(/* webpackChunkName: "about" */ '../views/BSMouseWheel.vue')
  },
  {
    path: '/scroll-bar',
    name: 'scroll-bar',
    component: () => import('../views/BSScrollBar.vue')
  },
  {
    path: '/pullup',
    name: 'pullup',
    component: () => import('../views/PullUp.vue')
  },
  {
    path: '/wheel',
    name: 'wheel',
    component: () => import('../views/BSWheel.vue')
  },
  {
    path: '/slide',
    name:'slide',
    component: () => import('../views/Slide.vue')
  },
  {
    path: '/nested-scroll',
    name:'nested-scroll',
    component: () => import('../views/NestedScroll.vue')
  }
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
